using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using ESoft.Core.Data;
using ESoft.Core.Data.Entity;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace ESoft.Portal.Data.Domain.Entity
{
    /// <summary>
    /// UUser
    /// </summary>    
	[Table("u_user")]
    public partial class UUserEntity : BaseModel
    {
		/// <summary>
        /// 用户标识
        /// </summary>
		[Key] 
		[Column("USER_ID")]
        public string UserId { get; set; }
		/// <summary>
        /// 用户名
        /// </summary> 
		[Column("USER_NAME")]
        public string UserName { get; set; }
		/// <summary>
        /// 机构标识
        /// </summary> 
		[Column("ORG_ID")]
        public string OrgId { get; set; }
		/// <summary>
        /// 1会员2企业用户
        /// </summary> 
		[Column("USER_TYPE")]
        public int UserType { get; set; }
		/// <summary>
        /// 密码
        /// </summary> 
		[Column("USER_PASSWORD")]
        public string UserPassword { get; set; }
		/// <summary>
        /// 盐
        /// </summary> 
		[Column("SALT")]
        public string Salt { get; set; }
		/// <summary>
        /// 手机号
        /// </summary> 
		[Column("MOBILE_PHONE")]
        public string MobilePhone { get; set; }
		/// <summary>
        /// 邮箱
        /// </summary> 
		[Column("EMAIL")]
        public string Email { get; set; }
		/// <summary>
        /// 
        /// </summary> 
		[Column("LAST_LOGIN_IP")]
        public int? LastLoginIp { get; set; }
		/// <summary>
        /// 
        /// </summary> 
		[Column("LAST_LOGIN_DATETIME")]
        public DateTime? LastLoginDatetime { get; set; }
		/// <summary>
        /// 创建时间
        /// </summary> 
		[Column("CREATE_DATETIME")]
        public DateTime? CreateDatetime { get; set; }
		/// <summary>
        /// 备注
        /// </summary> 
		[Column("REMARK")]
        public string Remark { get; set; }
		/// <summary>
        /// 状态1待激活2正常3关闭
        /// </summary> 
		[Column("STATUS")]
        public int Status { get; set; }
		/// <summary>
        /// 
        /// </summary> 
		[Column("STATUS_DATETIME")]
        public DateTime StatusDatetime { get; set; }
		/// <summary>
        /// 注册来源：1人工录入2主动注册
        /// </summary> 
		[Column("REG_SOURCE")]
        public int? RegSource { get; set; }
    }

		public class UUserConfiguration : EntityMappingConfiguration<UUserEntity>
    {
        public override void Map(EntityTypeBuilder<UUserEntity> b)
        {
        }
    }
}

